Component({
  /**
   * 组件的属性列表
   */
  properties: {
    visible: Boolean,
    title: String,
    subtitle: String,
    handleConfirm: Object,
    handleCancel: Object,
    onlyConfirm: {
      type: Boolean,
      value: false
    },
  },
 
  /**
   * 组件的初始数据
   */
  data: {
  },
 
  /**
   * 组件的方法列表
   */
  methods: {
    handleCancel() {
      this.triggerEvent('handleCancel')
    },
    handleConfirm() {
      this.triggerEvent('handleConfirm')
    }
  },
  ready: function() { 
    console.log(this)
  },
})